README
“No One Mourns the Wicked: Partisan Hostility Persisting through Tragedy”
Wayde Z.C. Marsh
10/31/2024

Replication Instructions

1.	Put all files in the replication archive into a single folder.
2.	Run R script contained in code chunks in the RMarkdown file “CovidPID_Code.Rmd” to reproduce results for Tables and Figures reported in manuscript. 
3.	Alternatively, open “CovidPID_Code.html” to see all replication code with full results and all figures. 

Overview of Files 
	R Scripts
		1. CovidPID_Code.Rmd – This script estimates all the models summarized in all tables of the main text and produces all main text figures.

HTML Document
		1. CovidPID_Code.html – This file is the knitted version of “CovidPID_Code.Rmd,” with all code run. All figures and analysis are available for viewing without running the script. Tables in the article were produced manually from the models, so tables will not appear in the file here.
	
Input Data Files
1.	CES21_pilot1.csv---Data from original survey experiment fielded Lucid Theorem’s panel of respondents in August 2021. The sample uses quotas for age, sex, region, and ethnicity to match census data on these characteristics. Sample size was 1,360 respondents.
a.	Used to estimate the results in table 2 (lines 217-252), 4 (lines 253-277), 6 (lines 333-344), 7 (lines 376-387), B.1, B.2, B.3, D.4, D.5, D.6, E.1, E.2, E.5, E.6, F.1, F.3, G.1, G.2, G.3
b.	Used in figures B.6, B.7, B.8, G.1, and G.2.
2.	CCES21_NDB_OUTPUT.sav--- Data from original survey experiment as a part of the author’s institution’s module on the Cooperative Election Study (run on YouGov’s panel) in October 2021. This is a probability sample with matching and post-stratification weighting to be nationally-representative. Sample size was 1,000 respondents.
a.	Used to estimate the results in tables 3 (lines 280-304), 5 (lines 305-329), 6 (lines 346-374), 7 (lines 389-418), B.1, B.2, B.3, D.4, D.5, D.6, E.3, E.4, E.7, E.8, F.2, F.4, G.1, G.2, 
b.	Used in figures B.6, B.7, B.9, G.1, and G.2.

Supplementary Information Document
		1. CovidPID_SI.pdf – This 30-page PDF document is the full supplementary information document to accompany the publication. 



Base Software Dependencies
	Operating System: macOS Sonoma version 14.6.1
	R: All analyses were produced using R version 4.3.3 (2024-02-29) -- "Angel Food Cake
RStudio: 2024.04.2 Build 764, “Chocolate Cosmos”

Additional Software Dependencies 
	R: The following R-packages were used in the analysis: descr, ggplot2 dplyr, foreign, plyr, ggpubr, ggeffects, tidyverse, haven, modelsummary, Rmisc, and xtable.


